Skip to content

TOC-Math

[!quote]+ “No one shall expel us from the paradise which Cantor has created for us.” ---David Hilbert, 1926

Sets

+ Def: A set (naively) is a collection of objects such that

  • no order and no duplication

An object a is in a set A is denoted as aA.

To represent a set, you need to

  • Put all members in a pair of curly brackets {};
  • Enumerate all members, e.g. {0,1,2,}; or
  • Give a member representative and followed by the characteristic of members using a predicate,
    • e.g. {x|P(x)} .

+ Def: Empty set

S={x|} is an empty set, denoted by .

"" is a concatenation (always false), Or equivalently,

+ Def: Empty set

S is an empty set if x,xS.

Universal set

+ Def: Universal set

A universal set is a set that contains all elements under a certain context.

A universal set is usually denoted in the blackboard bold font. For example,

  • N: the set of natural numbers;
  • Z: the set of integers;
  • Q: the set of rational numbers;
  • R: the set of real numbers;
  • C: the set of complex numbers;
  • U: the universal set without a specification.
  • P: the set of prime numbers.

+ Def: subset

Set A is a subset of set B if x,xAxB, denoted as AB.

+ Def: Power set

Let A be a set. P(A)={S|SA} is the power set of A.

Let A=1,2.P(A)={,{1},{2},{1,2}} .

Set operator

Suppose A and B are two sets.

+ Def: Complement

A complement is the set A={xxA}.

+ Def: Intersection

A intersection B is the set AB={xxA and xB}.

+ Def: Union

A union B is the set AB={xxA or xB}.

+ Def: Setminus

A setminus B is the set AB={xxA and xB}.

Relation

Suppose A and B are two sets.

+ Def: Cartesian product

The cartesian product of A and B is the set:

A×B={(x,y)xA and yB}.

Each object (x,y)A×B is a pair or generally a 2-tuple.

+ Def: Relation

A relation R between A and B is a subset of A×B.

If (x,y)R, we say x is related to y, denoted by xRy.

A relation R is on the set A if RA×A.

Let R be a relation on a set A. R is:

  • reflexive if xA,xRx;
  • symmetric if x,yA,xRyyRx;
  • anti-symmetric if x,yA,(xRyyRx)x=y;
  • transitive if x,y,zA,(xRyyRz)xRz.

Function

+ Def: Function

A relation f between A and B is a function if:

xA,!yB,(x,y)f.
  • A is the domain.
  • B is the co-domain.
  • ! means uniquely exists.
  • Such a function is denoted as f:AB.

+ Def: Image and pre-image

If (x,y) is an object of the function f, we denote f(x)=y and say:

  • y is the image of x;
  • x is the pre-image of y.

To denote a function:

  • Surely, one can enumerate all pairs in the function.
  • But usually, people present the expression.
    For example, f:NN such that f(x)=x+1.

For the same example, one can also write f:xx+1.

Please distinguish “” and “”:

  • ” is from domain to co-domain.
  • ” is from pre-image to image.

+ Def: A function $f: A\rightarrow B$ is

  • Injection: If x,yA,xyf(x)f(y)
    • 不同x对应不同y
  • Surjection: If  yB, xA,f(x)=y
    • 任何y都有对应的x
  • Bijection: If f is both injection and surjection.

For example, let f:RR.

  • f(x)=2x is an injection but not a surjection.
  • f(x)=x(x+1)(x1) is a surjection but not an injection.
  • f(x)=x is a bijection.

[!abstract]+ Graph

functionplot
---
title:
xLabel: 
yLabel: 
bounds: [0,1,-1,1]
disableZoom: true
grid: true
---
g(x)= tan(PI*x-PI/2)

Formal Language

To precisely describe mathematics, algorithm, computation, and other procedures, formal languages are used. A language is a set of strings over an alphabet. Formally,

+ Def: Language

A language is a set of strings over a specific alphabet.

+ Def: alphabet

An alphabet is a nonempty finite set.

For example, Σ={0,1,x,y,z}

Strings

+ Def: string

A string over an alphabet Σ is a finite sequence of symbols from that alphabet.

+ Def: length

If w is a string over the alphabet Σ, the length of w is the number of symbols in w, denoted by |w| .

+ Def: Empty string

The empty string is the string of length 0, denoted by ϵ.

Let w=w1w2wn be a string of length n, where each wiΣ.

+ Def: Reverse

The reverse of a string w is the string wnwn1w1, denoted by wR.

+ Def: Substring

The string z is a substring of w if z consecutively appears in w.

+ Def: Concatenation

The concatenation of two strings w and z is the string wz=w1w2wnz1z2zm of length n+m.

For example, 101xxy00zz=101xxy00zz. Sometimes, the operator “” is omitted. wz=wz

+ Language

A language is a set of strings over a specific alphabet.

Proof

In this lecture, we only emphasize several proving techniques.

  • Constructive proof
  • Prove by contradiction
  • Induction
  • Diagonal argument

Constructive proof

  • Used to prove a predicate with existential quantifiers, like x,P(x).
  • First, construct an object x.
  • Second, prove P(x) is true.

Prove by contradiction

  • Used to prove a proposition p.
  • First, assume p is false.
  • Then, derive a contradiction.
  • Last, claim p is true.

Induction

  • To prove a predicate with universal quantifiers, one can use induction.
  • Induction has two variants: simple and strong. But, they are equivalent.
  • To prove xN,P(x):

Simple Induction:

  • Prove P(0) as a base case.
  • Prove aN,P(a)P(a+1) as an induction.
  • In the second step, P(a) is the inductive hypothesis.

Strong Induction:

  • Prove P(0) as a base case.
  • Prove aN,(P(0)P(a))P(a+1).
  • We assume P(0),,P(a) are all true in the strong induction.

Cardinality

+ Def: Cardinality

The cardinality of a set A is the number of objects in A, denoted as |A|.

+ Def: Cardinality

The set A and the set B are of the same cardinality if there is a bijection f:AB.

Examples:

  • A={0,1,2} and B={4,5,6} are of the same cardinality because we can define a bijection f:AB such that f(x)=x+4.
  • The set of even numbers E and the set of integers Z are also of the same cardinality because of the bijection f(x)=x2.

Note that the cardinality can be finite and infinite.

Countable

+ Def: Countable

A set is countable if it is finite or its cardinality is same as the set of natural number N.

Countable means that:

  • For every number x in the natural number (no matter how large the number is),
  • if we count from 0,
  • we can eventually reach the number x within a finite time.

In fact, the counting procedure constructs a bijection, mapping a natural number i to the ith counted element.

We denote the cardinality of N by 0

To proof an infinite set A is countable, you need t construct a bijection f:AN

Diagonal Proof

Georg Cantor developed a method to prove a set is uncountable.

For example:

+ Theorem

The set of all real numbers in the open interval (0,1) is uncountable.

The intuition of the proof (by contradiction) is as follows:

  1. Assume (0,1) is countable, then we can "count" the numbers one by one.
  2. Then, we can list all the numbers that we count in a table.
  3. Construct a real number in (0,1) but cannot be reached in the table.

Thus, the set of reals in (0,1) is uncountable.

Suppose we denote a real number as ai=ai,1ai,2. Then, we build the table in Step 2 of the proof.

IndexanDigits
0a0a0,0 a0,1 a0,2
1a1a1,0 a1,1 a1,2
2a2a2,0 a2,1 a2,2

Next, we define a real number ax=ax,0ax,1 such that:

ax,i=(ai,i+1)mod10

We can see ax is not in the list:

  • ax and a0 are different at digit 0.
  • ax and a1 are different at digit 1.

Thus, ax is not counted, and the set of reals in (0,1) is uncountable.

Here we list some facts about infinite sets:

  • The set of real numbers R has cardinality 1.
  • The power set P(N) of N also has cardinality 1.
  • P(R) has cardinality 2.
  • You can make such constructions by taking power sets.

+ Hypothesis (Continuum Hypothesis - CH)

There is no set of cardinality strictly between 0 and 1.

So far, people only know:

+ Theorem (Cohen 1964)

CH is unprovable under ZFC.